package com.ruoyi.basedata.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.basedata.mapper.BdCheckoutpriceMapper;
import com.ruoyi.basedata.domain.BdCheckoutprice;
import com.ruoyi.basedata.service.IBdCheckoutpriceService;

/**
 * 核算价Service业务层处理
 * 
 * @author ptt
 * @date 2023-03-24
 */
@Service
public class BdCheckoutpriceServiceImpl implements IBdCheckoutpriceService 
{
    @Autowired
    private BdCheckoutpriceMapper bdCheckoutpriceMapper;

    /**
     * 查询核算价
     * 
     * @param id 核算价主键
     * @return 核算价
     */
    @Override
    public BdCheckoutprice selectBdCheckoutpriceById(Long id)
    {
        return bdCheckoutpriceMapper.selectBdCheckoutpriceById(id);
    }

    /**
     * 查询核算价列表
     * 
     * @param bdCheckoutprice 核算价
     * @return 核算价
     */
    @Override
    public List<BdCheckoutprice> selectBdCheckoutpriceList(BdCheckoutprice bdCheckoutprice)
    {
        return bdCheckoutpriceMapper.selectBdCheckoutpriceList(bdCheckoutprice);
    }

    /**
     * 新增核算价
     * 
     * @param bdCheckoutprice 核算价
     * @return 结果
     */
    @Override
    public int insertBdCheckoutprice(BdCheckoutprice bdCheckoutprice)
    {
        return bdCheckoutpriceMapper.insertBdCheckoutprice(bdCheckoutprice);
    }

    /**
     * 修改核算价
     * 
     * @param bdCheckoutprice 核算价
     * @return 结果
     */
    @Override
    public int updateBdCheckoutprice(BdCheckoutprice bdCheckoutprice)
    {
        return bdCheckoutpriceMapper.updateBdCheckoutprice(bdCheckoutprice);
    }

    /**
     * 批量删除核算价
     * 
     * @param ids 需要删除的核算价主键
     * @return 结果
     */
    @Override
    public int deleteBdCheckoutpriceByIds(Long[] ids)
    {
        return bdCheckoutpriceMapper.deleteBdCheckoutpriceByIds(ids);
    }

    /**
     * 删除核算价信息
     * 
     * @param id 核算价主键
     * @return 结果
     */
    @Override
    public int deleteBdCheckoutpriceById(Long id)
    {
        return bdCheckoutpriceMapper.deleteBdCheckoutpriceById(id);
    }

    @Override
    public void banAllCheckoutprice() {
        bdCheckoutpriceMapper.banAllCheckoutprice();
    }

    @Override
    public int del60DaysData(String date) {
        return bdCheckoutpriceMapper.del60DaysData(date);
    }
}
